package com.own.business.log.operation.persistence.controller.user.doc;

import com.own.component.springdoc.DefaultSecuritySpringDocConfiguration;
import com.own.constant.ConstantBeanSuffix;
import org.springdoc.core.GroupedOpenApi;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.context.annotation.Bean;

import javax.annotation.Resource;

/**
 * UserLogOperationPersistenceApiDocConfiguration
 *
 * @author chenxueli
 * @date 2023-08-03 09:36:11
 */
@SpringBootConfiguration
public class UserLogOperationPersistenceApiDocConfiguration {

    @Resource
    private DefaultSecuritySpringDocConfiguration defaultSecuritySpringDocConfiguration;

    @Bean
    public GroupedOpenApi userLogOperationPersistenceApiDoc() {
        return defaultSecuritySpringDocConfiguration.create(
                "操作日志管理" + ConstantBeanSuffix.USER_CLIENT,
                this.getClass().getPackageName(),
                "com.own.business.log.operation.persistence.controller.user"
        );
    }

}
